-- GENERATED SPELL FOR [Bleeding Hollow Necrolyte] --


function spell0_19422(pUnit, Event) --@Curse of the Bleeding Hollow,Heal--
pUnit:FullCastSpellOnTarget(34073,pUnit)
pUnit:RegisterEvent('Sorts_19422', 30327, 1)
end

function spell1_19422(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19422', 3000, 1)
end

function spell2_19422(pUnit, Event) --@Raise Dead,Self--
pUnit:FullCastSpellOnTarget(34019,pUnit)
pUnit:RegisterEvent('Sorts_19422', 1500, 1)
end

function Sorts_19422(pUnit, Event)
local choix_sorts_19422 = math.random(0, 2)
if choix_sorts_19422 == 0 then
pUnit:RegisterEvent('spell0_19422', 1, 1)
end
if choix_sorts_19422 == 1 then
pUnit:RegisterEvent('spell1_19422', 1, 1)
end
if choix_sorts_19422 == 2 then
pUnit:RegisterEvent('spell2_19422', 1, 1)
end
end

function mob19422_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19422', math.random(1500, 3000), 1)
end

function mob19422_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19422_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19422_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19422, 1, 'mob19422_Action')
RegisterUnitEvent(19422, 2, 'mob19422_Leave')
RegisterUnitEvent(19422, 3, 'mob19422_Kill')
RegisterUnitEvent(19422, 4, 'mob19422_Die')
